




C String Lowercase: strlwr()
The strlwr(string) function returns string characters in lowercase. Let's see a simple example of strlwr() function.

#include
#include   
int main(){  
  char str[20];  
  printf("Enter string: ");  
  gets(str);//reads string from console  
  printf("String is: %s",str);  
  printf("\nLower String is: %s",strlwr(str));  
 return 0;  
}  

Output:

Enter string: JAVATpoint
String is: JAVATpoint
Lower String is: javatpoint













Please Share





